package com.ssm.demo.service;

import com.ssm.demo.pojo.TUser;
import jakarta.servlet.http.HttpServletRequest;

import java.util.Map;

public interface TUserService {
    /**
     * 登录返回jwt token
     * @param user
     * @return
     */
    Map<String,Object> login(TUser user);

    /**
     * 校验jwt
     * @param request
     * @return
     */
    Map<String,Object> verify(HttpServletRequest request);

    /**
     * 获取用户信息
     * @return
     */
    Map<String,Object> detailUser(HttpServletRequest request);
}
